import request from '@/utils/request'

// 查询车辆充卡列表
export function listVehicleownerinfo(query) {
  return request({
    url: '/system/vehicleownerinfo/list',
    method: 'get',
    params: query
  })
}

// 查询车辆充卡详细
export function getVehicleownerinfo(userId) {
  return request({
    url: '/system/vehicleownerinfo/' + userId,
    method: 'get'
  })
}

// 新增车辆充卡
export function addVehicleownerinfo(data) {
  return request({
    url: '/system/vehicleownerinfo',
    method: 'post',
    data: data
  })
}

// 修改车辆充卡
export function updateVehicleownerinfo(data) {
  return request({
    url: '/system/vehicleownerinfo',
    method: 'put',
    data: data
  })
}

// 删除车辆充卡
export function delVehicleownerinfo(userId) {
  return request({
    url: '/system/vehicleownerinfo/' + userId,
    method: 'delete'
  })
}
